AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Sets up the progress listeners

Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public abstract Stream SetupProgressListeners(
         Stream originalStream,
         Int64 progressUpdateInterval,
         Object sender,
         EventHandler<StreamTransferProgressArgs> callback
)

Parameters

originalStream
Type: System.IO.Stream

The content stream

progressUpdateInterval
Type: System.Int64

The interval at which progress needs to be published

sender
Type: System.Object

The objects which is trigerring the progress changes

callback
Type: System.EventHandler<Amazon.Runtime.StreamTransferProgressArgs>

The callback which will be invoked when the progress changed event is trigerred

Return Value


Type: Stream
an object, incase the progress is setup, else returns the original stream

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer